Fix resolution of symlink-to-symlink-to-....

Turns out one of my users invokes cobble through a symlink, which
resulted in a bad symlink during reinit and an unusable build
directory.