Updated to allow missing dist folder