Add download option.

Unlike upload option, download pulls down whole tree. For this reason
--to is expected to be directory path.

Fix even uninitialized variable problem, not_dir.