Use the correct txtorcon API depending on the software version.

This fixes: https://trac.torproject.org/projects/tor/ticket/12747
Merge pull request #53 from TheTorProject/fix/12747

Use the correct txtorcon API depending on the software version.