In addition to the main issue, it should only call fortran-2_pkg_setup when "use fortran"; otherwise it will fail in the setup phase when no fortran compiler is installed.