remove unneeded imports
Fail loudly on illegal characters in version. Closes GH-58.