I think this is the logic that was needed to set project type for projects specifying download parameters (such as `projects[foo][download][type] = "git"`).