Fix an issue with writing Q-Chem input