Add Joel's code for getting the app path.