Fix imagemin rebuild on production