removed bashism from ssha.funcs