Automatically tag releases in build script (#225)

(Sorry for the unrelated forgotten commit!)