Add support for filtering a RANGE_SET by booting in EFI or Legacy BIOS mode