add git tag-based versioning, fix dofile error handling