Fix regex in sanitizePath()