chdir if needed