Made script work when stty isn't available.