Re-apply Fixup-generated-batch-files-to-not-support-Windows-9.patch to correct hashbangs