Fixed: Logs directory is not created in some contexts ( apache_itk )
(cherry picked from commit fbe4db6)