make sure that mpi modules only get loaded if they were previously removed