jpctb_base="$0"
jpctb_base="${jpctb_base%/*}"
-if [ $* -lt 2 ]; then usage >&2; exit 127; if
+if [ $# -lt 2 ]; then usage >&2; exit 127; fi
export JWRAP_EXTDIR="$1"; shift
-export JWRAP_SCRIPT="$jpctb_base/jwrap-script-pctb"
+export JWRAP_SCRIPT="$jpctb_base/jwrap-script-jpctb"
if [ x"$LD_PRELOAD" != x ]; then LD_PRELOAD="$LD_PRELOAD:"; fi
export LD_PRELOAD="${LD_PRELOAD}$jpctb_base/libjwrap.so.1.0"