add function to properly compare version strings
Merge branch 'version-compare' into devel