Bugfixes and my.cnf checker

Fix the run sub to not close STDERR in the parent

Fix various warnings

Check my.cnf for errors