Support backslashes in resource path (adds windows support)

This patch adds support for backslashes in resource paths, which primarily allows the plugin to work on windows. The crazy number of backslashes in the replacement string is because of the Java `String.replaceAll` syntax. Also fixes #5.