avoid chdir with changed symlink commands