Fixes for install / uninstall on Windows: always replace backslashes with slashes and remove trailing slashes or backslashes from base system path.