Small CL to change the way format is used for package versions.
Adds tests to confirm new behaviour and old.

R=rnystrom@google.com

Review URL: https://chromiumcodereview.appspot.com//104503011