Fixed controlling directories.

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