x86/boot: Modernize genimage script; hdimage+EFI support