[intel-pt] Improve the way the test determines whether to run