Relax directory checking regex to work on \ or / paths
Make globbing work on paths containing \ or /