Implement canonical_path using the new sudo implementation (LEV-90)