Radically modifying the scripts for UEFI support