handle absolute path to configure correctly

When building out-of-source, configure may very well be called
with an absolute path. Make sure symlinks are correct in such a case.

And yeah, it's ugly.