Make directories if they don't exist.