Add pathof subcommand.