klomp-update: add function for computing relpath from an absolute basepath
klomp-update: calculate symlink dir relative to libpath
klomp-update: cleanup relPath sub to not have redundant '../'s all the way to root and back