don't chdir unnecessarily