fix production type was not detected resulting in not removed console log/debug commands when building the release