configure.ac: workaround quoting issues

BROWSER_PLUGIN_DIR variable substitution is not portable. In particular
it does not work in dash. Replace it with conditional.

https://bugzilla.gnome.org/show_bug.cgi?id=739226