Test: lrmd: Allow regression tests to run from the source tree
Refactor: pe: Remove dead code