Misc.find_in_path: always return canonical filename
protocol: Add typing information for completion command