Moved Fortran compiler check to work with either gcc or clang compilatio...

...n