do not fail to match patterns on windows
check matches against full directory name