Build: fix process exit code to allow travis detect test failures