[Integration] Fix issue when a build configuration contains a slash

Fixes #2767
Merge pull request #2808 from CocoaPods/issue-2767

[Integration] Fix issue when a build configuration contains a slash