resolve symlinks for the directory of the current file