Moved Fortran compiler check to work with either gcc or clang compilation