After using readlink to get the real fortran compiler there was a problem with an if statement. The problem is now fixed.