Isolated old install deletion code to clean_old_install()