Using the latest build, I started editing a file, and well - a picture speaks a thousand words:
As you can see it's chopping off the last directory, should be a simple fix.
Although I don't really use this function at all i'm sure someone might use it so should probably fix it lol