Fixing log filename, enforcing creation of log dir