[Fixes #1201] Handle virtual paths in FilePathResult

I'm not a big fan of tests actually hitting the the disk. You're making some assumptions about the value of `$pwd` in the test, which seems fragile. Probably ok to just leave it and clean up if there are issues, but you could have easily just mocked `IFileSystem`