Fix auto-install issue when cloning and setting up repo