Add support to generate tags on windows.

Add `exit` to the unfinished code in #49 to avoid halting and make this a pull request.