Detect SGB properly. Also, detect that DATA_TRN code uploading works (emulators which don't support code uploading can't run this ROM), and gracefully fallback to DMG when the upload fails.