Fix how project type is determined