Calculate execution domain based on relative path.

Avoids problems where “private” is included within the base path
leading up to the root of the app.