Fix generation of .pgw files