[PATCH RESEND stable 5.10] perf tools: Fixup get_current_dir_name() compilation