Don't anchor regex to $ to account for x.x.x.x-yyyy build numbering

Change-Id: I19006a18a23d592592b55f334e9615f7f517662f
Reviewed-on: http://review.couchbase.org/42333
Reviewed-by: Chris Hillery <ceej@couchbase.com>
Tested-by: Chris Hillery <ceej@couchbase.com>