Provide activate/deactivate functionality on Windows to match Unix

OK this should be a cleaner way to fix the Windows activate.bat/deactivate.bat to work properly.