Fix create repo script