Bug fix: Prevent creating an additional log directory.