Fix --with-fortran=... logic

This commit fixes #211 
@jsquyres could you please review it before it gets merged into the trunk ?