ncm-mysql: fix processing of tableOptions
- Also fix wrong return code in mysqlExecCmd() when arguments are invalid
- Replace use of LC::Check::file by CAF::FileWriter/FileEditor

Fixes #300