fix path regex