Convert illegal file check to more cross-platform legal file check,

still works the same way, needs a bit of testing,
Also added process to automatically convert all file extensions to
uppercase per LEGO.JAM format requirements.