Patches for check_mssql.sh [sf#732590] [#310]