if statement not working but tput is consistent on both linux and Mac OS

made mistake on previous commit