Merge pull request #211 from xiulipan/shfix

scripts: version: fix version error when have no tags