don't chdir, it resolves symlinks