Update get_persistent_boot for UEFI

This commit is to modify the get_persistent_boot to return
consistent data for both BIOS and UEFI boot mode.