add some robustness to rescue mode and ssh availability checks