fixed creation of dist directory