make sure directory exists before we create a file in it (how did this ever work?!)
make sure CPATH setting are correct for Intel MPI
restore original $LIBRARY_PATH
fix typo