common/config: implement set_prog_path() using 'type -P'