bugfix: failed to find the current version when the origin is given; imp...

...orted from the upstream

commit 8d1bcd19e68d0b1b3576a77e233211dca0e2473a
Author: Dave Eddy <dave@daveeddy.com>
Date:   Wed Sep 3 19:55:03 2014 -0400

    fix FreeBSD pkgng provider (version detection)