Add support for __version__. (suggested by Luke Lee)