Determine APP_PATH programatically