Check for Wonderflux and deactivate if required

Improve activation and deactivation - don't activate if using Wonderflux v2.0 or above.