bugfix for #889 - import-app command directrory renaming bug

fixes #889