deleting old namespace dirs when importing an app - fixes failing test for #794