[PATCH 4.9 13/29] perf tools: Move headers check into bash script