Fixing bug in control code when more than one repository was provided at the command line.