* helm-grep.el (helm-grep-prepare-candidates): ack-grep handle directory.
* helm.el (helm-exit-minibuffer-hook): New hook.
* helm-files.el: Use it to save history file.