Added creation of required directories