fixed an error in testing MPI. BUILD_MPI may be an empty string.