Fixing if directory exist check
Merge pull request #92 from ziggimon/synology-dsm5

Fixing if directory exist check