use the right subdir name based on python version

Based on https://github.com/mrunalp/openshift-python27-flask-quickstart/blob/master/app.py