[tor-commits] [tor/master] compat.c coverage: simplify under-tested alloc_getcwd.