Fixed Python 2.5 detection