fixed Job failure when stderr written by R script