Change a few prints to go to stderr, and avoid printing duplicate error message for the unknown command error.