[PLAT-5333] Handle trailing slashes correctly from Advanced Installer paths