Set CWD to pre_deplot, post_deploy.