PackageInstaller: Fix rewriting paths to system

In BeOS, there was no /boot/system, there as /boot/beos/system. If memory
serves. Fixes install location of GoBe Translators.
Reintroduce BeOS compatible en/decode_base64.

Fixes #8579.