utility: add function which detects if we are running within UEFI