Patches for check_oracle --tns bad string matching [sf#3389177] [#1120]