bugfix, if ressource (file) was deleted

We got an fatal error, that the directory "" is not existing. Now it will be checked, if the file exists, before handle with it.
Merge pull request #54 from GrexAut/patch-1

bugfix, if ressource (file) was deleted