Move fixgitremote into external script