path.c: make get_pathname() return strbuf instead of static buffer