Set up directories.