add windows implementation for directory scan