ij-legacy (Windows): do not store the preferences in the current directory

It is almost never what the user wants.

Ported over from fiji-compat.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
ij-legacy: let Toolbar cope with tool names being prefixes of others

Ported over from fiji-compat.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>