Use quotemeta to fix the regex matching the path