Fix windows path regex detection