Make release versioning more robust

Signed-off-by: Sheel Choksi <sheelc@pivotallabs.com>