reversed the mpi package check order for travis compatibility