Make pattern loading work on IE10.

Would prefer more distinguishable names. Maybe currentPathPattern and and loadedPathPatterns?