Fix repos creation and exit when a command fails.