Fix generation of tfw files.