[Fix #199] Rebuild file path from scratch with out-dir
[Fix #199] Rebuild file path from scratch with out-dir

The fix makes sure that the path in render is calculated from the right
individual pieces if out-dir is specified (and therefore not matching
:doc-root). The permalinks are now correctly generated.

hashobject/perun