Simplify checking directory
Merge pull request #1 from cwkuo/master

Simplify checking directory