The work_path variable does exactly what you are talking about.