Split FilePath into DirPath and FilePath

This looks like a pretty unusual semantic, I would be pretty concerned that this led to fairly unexpected behaviour. 

Also, how do you make a prepend the root path to a DirPath?