fixed bug in version script which caused sed issues