Set cwd on script level