hprofile: run-script: minor fix/clean up