(QENG-1033) Don't modify constants and properly support all Linux platforms in Perf

This `if` statement can be merged with the above `if opts[:collect_perf_data]`.