Use Cwd::realpath to find lib/

... like in the other scripts.
That's useful if advanced_bin/ is directly not in PATH, but its scripts are symlinked somewhere else accessible