Minor fix to path parsing