cli-clean: clean directories, accept list of targets

Some changes that should have been in the original pull request for #49