Make use of optparse to fix argument parsing for Python 2.6 in bin/chpathtool.py.