Fix command line migrator

@adampalay please review.  A little bit of bit rot (user id) and failure to catch user typing in a non-existent course.
This cleanup happens someplace else?