Switch logdir setting to a module parameter

The setting was using a dynamic scoped variable.