Fixed the bug which caused the plugin to fail on Windows.