Creating folders when they dont exist

This just creates folders where they don't exist. It was assumed that they existed before, causing crashes.