modify method of directory check
enable to use as lib
Merge branch 'enable_lib'
release v0.0.7