1021893: Use different algorithm to parse puppet module version

I used the validation regex from Pulp to parse out author, version, name but that lead to problems with parsing out the version (ie 2.0.0-rc1) so I am copying two methods from the Pulp code to parse out that info.