fix chdir for assemblies and ids