>From the error described, it looks like the errors are coming from another script called from inside the shell command.
Are the "sh: -c: line 0: ..." showing up in the build log in Jenkins? Can you share more or the output log? (basically 15-20 lines before this is seen) As it looks more likely that the errors are coming from a script that is being called from ./build_target.sh or Make. Does the log show what script is being called before the error is printed? Does running the same commands manually from the slave machine show the same issue? If not trying doing a diff of the env from the jenkins job and the manual run to see what differences there are. Chris