The fix is trivial. We need to check for '/sys/firmware/efi/efivars/' since '/sys/firmware/efi/vars/' is gone on non-x86 (and deprecated for a long time on x86).