Renamed func cleanDirs to cleanDir.

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>
Added unit tests of bldDir(), cleanDir().

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

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

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

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