Error message bugfixes

Fixes per comments in swcarpentry/lesson-template/#57 .