some fixes for relative symlinks