fixed build script to clean dist dir and rename __version__ dir