Fixing invalid reads in find_elf_note due to setenv invocation

Resolves issue on mailing list and Red Hat Bugzilla 1163404.
1 job for <span class="ref-name">find_elf_note_fix</span> in 2 minutes and 10 seconds (queued for 6 seconds)
Status Job ID Name Coverage
  Test
failed #3342088
MakeCheck

00:02:10

 
Name Stage Failure
failed
MakeCheck Test There is an unknown failure, please try again
Makefile:580: recipe for target 'check-am' failed
make[2]: *** [check-am] Error 2
make[2]: Leaving directory '/builds/jrybar/procps/testsuite'
Makefile:1661: recipe for target 'check-recursive' failed
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory '/builds/jrybar/procps'
make: *** [check] Error 2
Makefile:2117: recipe for target 'check' failed
ERROR: Build failed: exit code 1