Support tasks of directory inputs/outputs

See #37.

User have to call `mkdir()` of the node when one want to use that node as the directory.
We might have to add new example to use this mechanism or write document.