small improvements on ssh keyfile reading