Fix ABXD after installation with prefixes

If you seriously want to change the installer (why? previous was
perfectly fine?), at least ensure it works properly. It still doesn't
have stuff like sanity checks, but at least it can install ABXD now
properly if you use prefixes.