Make sure dist folder can  be created successfully.