Adds required directories.