path: simplified checking for Python 2.6 or higher.