Fix patching of files without boot images