fix upper/lowercase filenames for wgml output files
cleanup some macro names