ENH: Add possiblity to enable/disable module paths

WORK IN PROGRESS

Fixes #2256