add 'cwd' option to jsvc command line

Without setting the CWD, there may be cases where the process is launched in an
unspecified cwd, leading to errors.