#1091: workaround on OSX

disclaimer: this is all @jgillis's idea

On OSX the find fortran test is returning 0 even if it fails, so we also check
the string for "The Fortran compiler identification is unknown".