Honor option "module_attachment"

Currently, the option "module_attachment" is honored everywhere but not within the WCF itself.