Merge pull request #7 from thentenaar/master

Look just a little harder for my.cnf and the MySQL UNIX socket
modify loop condition from issue #7
s/isfile/exists/ since Python doesn't regard a socket as a 'file'