refactor __version__ (regression of #302)