Fix Directory.contains method error on Windows

Fixes #20