trying to fix diretory check
Merge pull request #9 from nhhagen/master

trying to fix diretory check