Bugfixes the checking of dir availability
Merge pull request #3 from terwey/documentation

Bugfixes the checking of dir availability