Fixed modlist.json generation not doing dependencies and versions correctly