Fixes the reading of dependencies that have spaces in their subspecs' name from Lockfiles

Closes https://github.com/CocoaPods/CocoaPods/issues/2850.
Should've been done with https://github.com/CocoaPods/Core/pull/179.

See http://regexr.com/39uen.
I don't see a space in here, doesn't seem to do what it says on the tin (`handles names with a space`).