[build] Allow installing on top of an existing install.

Fixes issue #753.