Fix logic for single site installs