Fixed reengeneering at production mode (compiled distr script)