fixed syntax error in detect codename loop