Updated custom_header in to_xml_file to encompass script_options