Fixing problems with the push process.

- Detecting mysql permission errors during the dump process without ignoring
  them and continuing.
- Handling the case where the houdini_logs.txt file was being written to
  while creating the backup.  This caused problems where this file (and
  the containing stats_core directory) would be left, and subsequent
  pushes would fail because the Makefile was removed.