Get self path BSD compatibility (rev. 8)

Signed-off-by: nixnodes <code@eth.si>