We need to do this in Photran too (cosmetically, it's nice to have a "Run as Fortran Application" option to avoid confusing people)... unfortunately, I don't think I've figured out a good way to do this yet... any ideas from someone more knowledgeable about that part of the code?