OS-specific dir regex

Fixes autocomplete behavior on Windows.
Couldn't test it since current master is failing with `no such package mkdirp`.