Improve check of mysqld section, clean mysql folder for 'slave' nodes