fixed tput errors on batch mode ssh