Fix typo in the igprof script.
Clean up code.