Creating needed directories.