update build script to automatically create the dist folder