[tools] fix a bug which prevented imagetag from correctly initializing the version...