Minor fixes in makecfg routine.