Handled the case of using one directory for subsequent overwriting R installations by selecting the last one.