Set up working directories.