The project directory should be set only if specified to preserve this logic: https://github.com/CocoaPods/CocoaPods/blob/master/lib/cocoapods/config.rb#L159-L176