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

... ignored directory.