The platform creates a variable called OPENSHIFT_<cart-short-name>_DIR.  You should be able to take this out.