[james] #X fixed cwd in staging shell file