Convert version to string. Format is "major.minor.patch.build". build is omitted if null. Sample output:
1.0.0
10.6.4
10.7.0.0