Move Xdebug enabling/disabling logic to enable_modules