Prepare directory structure for use with swi