Improvements to work_directory
Doc updates for work_directory, adjust foreach.max.threads on midway