[Fixes #1201] Handle virtual paths in FilePathResult

You could probably move it further down and don't have to initialize it.