Handling empty SSH_KEYS, non-existent home directory