Get directory failed if there was exiting empty directory. This fixes #108