Fix binary resources generator