How do I get the directory of a file that is not in the current directory?