Fixed clean target implementation that was hitting resource limits on OS X.