Empty directory cause an infinite loop.
fixes #1
Merge branch 'master' of https://github.com/liudng/dogo