Fix cleanlogs command.
Merge pull request #512 from carragom/master

Fix cleanlogs command.