catch non-existing directory exception.

This happens if getFiles is called and no file has yet been uploaded.

IMO, this fixes #110
Merge pull request #112 from mvrhov/patch-1

catch non-existing directory exception.