Fix processing route patterns that terminate with a '$'