I will leave this up for devs to see. This is a 100% accurate method to set the users correct panel without the user having to flash a zip or do anything else
Here is the actual commit. This is much different from savocas script as it doesn't toggle the jdi and lgd command line back and forth every flash but automatically detects the correct panel.
(commit link updated)