Rewrite generate_clang_complete.rb

Pull the build settings directly from Xcode project file, and handle
multiple Xcode projects in the same directory tree.