Tentative fix for issue #89.

Try to be more generic in the configure script when checking for funky gfortran compiler names.