Update and refactor plugin disabling logic for windows and wp 8.1