improved detection of mysqldump tool

config comes first