check that the file attribute is valid
Merge pull request #13 from Fabsky/master

Fixes issue #12: Directory.Exist return strange result