Added creation of log/ directory