Make trailing paths canonical