Fixed: Log directory not created in some contexts
Small fixes