Returning the correct error code.

This patch gathers the return code from the initial minst invocation and
returns a non-zero error code if the compilation was not successful. The caveat
is that the script prefers returning the error code from minst than the
gfortran compiler.