see `pathsubst` example.
unfortunately set of use cases for `ptrace`-based solution is limited, due to high performance overhead.