Switch to a subprocess call for the private key to make sure it blocks before trying the first repo