Determine the version of the package in the root dir properly instead of assuming ~master.