Fix error in ssh key test

The ssh key test was using a test for shell variable rather than file
The updated test appears to remedy this failure.