Directory independent.

Current logic assumes stages live in the same directory path on some
other domain. Suggested fixes make it directory independent.