Fixed version check

Needed to strip post fix build metadata in scenario where no pre-release
section is specified in the semantic version.
Merge branch 'hotfix-1.0.1' into develop