remove the last tab in shell scripts