Adding directory check/create.
Creates directory if the directory does not exist.