Try to detect and remove local paths from error messages when generating...

... a ‘search for existing tickets’ URL.

Closes https://github.com/CocoaPods/CocoaPods/issues/2057