Rewrite clean function since it was misbehaving and deleting files in an ignored directory.
Rewrite clean function since it was misbehaving and deleting files in an ignored directory.

breznak/nupic,breznak/nupic,breznak/nupic