rgw: fix testdir format on f

Format the path, not filehandle