Format package version correctly.