Script now creates the folders it needs if they dont exist.