Improved package versioning.

OLD: PackageManager._get_last_version_number() errored when no versions were
found in the versions/ directory.

NEW: PackageManager._get_last_version_number() returns zero when no versions
are found in the versions/ directory.