Fixed error in wordpress script.

Added a check to see if wp-config.php exists.