In Linux, I don't think this is necessary, as the cwd is local to the shell script context.