Fix imagemin when there is child folders