Fixed a weird error with non-bash remote shells