Redirect kill output to /dev/null
Set LD_LIBRARY_PATH inside the script
Fix path qualifications.