Fix Directory.contains method error on Windows

Fixes #20
Merge pull request #22 from gustavohenke/patch-1

Fix Directory.contains method error on Windows