Minor change for windows users

The regex only replaced the first occurance of a windows directory
separator.