Fix getVersion
to handle tag properly
#158
Merged
getVersion
to handle tag properly
#158