Fixes issue #12: Directory.Exist return strange result


In some strange situation the errorCode is still 0, even if the path doesn't exists.
In that case the attribute is -1, so we can check that the attribute is valid