regexp fix for path parsing