Fixing detection of Debian version
Fixing detection of gfortran in Fedora and OpenSUSE (thanks to Nick Ristow)