update Travis build to use Makefile
Test / create errors directory before writing to it.

Closes #249.