[ExternalSources::PathSource] Add specs for relative path detection
[ExternalSources::PathSource] Fix relative path detection

Closes https://github.com/CocoaPods/CocoaPods/issues/2050