Refactors Makefile and improves engine test output.

Ensures that the proper exit status is returned to shell from mpiexec
call.