[Libguestfs] [PATCH nbdkit 1/4] common: Move get_current_dir_name(3) compatibility function.