configuration: move module_intermediates_dir to instance method