Updated export process to forcefully save mod right before compile to ensure all metadata files are in sync.