Fix up regex escaping and globbing