Clear the pkg dir before building.