Make heaptrack.sh file compatible with dash
Don't use the bashism == to compare strings, use = instead.
BUG: 392487