Install alternate prefix

Fix bugs and use cases related to using a non-standard `--prefix` for installing cockpit.