[ssh] fix issue with IFS not being reset to default