Exit with code 1 when any files have errors

Previously the exit code should have been 1, but if the last file had
no errors it would be 0.

Fixes #18