Use /tmp for temp dir or mysql thinks it is a database
Fix error log directive in my.cnf
Fix shift operations in getopt to set backupdir correctly
mysqld_safe needs to be backgrounded, then we wait 20 seconds for mysqld to settle