Make directories if they are missing