Fixed GAMESS input file creation bugs introduced in recent commits.