Improve logging of distro11s packages.

Check if you are already in the package's source directory and

record package version.  Log SHA even if not on a branch.