Improve auto mod config generator