Merge PTDEBUG fixes: https://bugs.launchpad.net/percona-toolkit/+bug/1249150 and https://bugs.launchpad.net/percona-toolkit/+bug/1249149.