Setting dynamic working directories.