Fix version_string.sh script

Fix logic for appending dirty suffix to synthetic version string
(only used when no tags present, ie "git describe" fails).