Refactor of version range parsing (readability).

Cleaned up the parsing of version ranges in the dependencies file parser.