support $PLUGINDIR$ and other user macros from resource file (fixes #209)