refs.c: remove_empty_directories can take a strbuf