Improve clean up in cleanbuild script.