Tweaked repository import script