Add support for versioning for ubuntu and 12.04