Makefile: fix some error handling