fixed directory checking bug
Fixed param parsing
Merge pull request #6 from aorti017/master

fixed directory checking bug