Correction to manage symlinks

A correction to try to correctly manage relative symlinks (it seems to
work only on certain systems like Mac OSX, but not on Linux)