[SourcesManager] Inform users about pre-release updates

Closes https://github.com/CocoaPods/CocoaPods/issues/2460.
[SourcesManager] Properly check the last version for update prompt.
[Lib lint] Fixes a crash when podspec cannot be loaded

Fixes #2147