Fix tests not being added to the mix
Fixes to the perl api to make it work under modern Slurm
chmod on test files
Use malloc instead of xmalloc on first env var so external api's (perl)
can handle the memory free.