Improve sqlcmd prerequisite validation