Added mechanism to detect/overwrite a previous installation