Change string format for Python 2.6. Fix sample-env.