Exit with sensible error if input file unreadable

I know this was a huge PEBKAC error, but it would have been faster to
diagnose with an earlier test and more informative error message.