On Windows file paths the seperator is ('\'). This screws around with the Regexp causing the 'i' to be interpreted as escaped. We can either force that the path is always posix compliant or we can escape the '\' themselves. This commit does the former.