Fix detecting project type and asking on open project if project type not set