Fix "runghc foo" where the program is foo.hs or foo.lhs