Use trim_path when we compare paths.