removed the code which was causing reduntant log folder to be created.