Regexp fix for windows dir delimiter