remove use of cwd to read symlink path