Automatically determine correct file extension for xcodeproj and xcworkspace