[PATCH] perf-script: check session->header.env.arch before using it