Improved the resource file exporter