remove build products
create directory before iterating