Only attempt to add the database dump to the archive if it actually exists
Check mysql port is numeric before passing to mysqldump, fixes issues with people having weird values set in their wp-config.php

See #231
Fallback to mysql_connect if mysql_pconnect is disabled.