self_get_path checking read access twice (rev. 18_b2)

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