Fixing creation of temporary dir in create_mirror