support directory path as target of backup

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>