Allow directory to be passed from settings to tasks.
Merge branch 'feature/passdirectory' into develop