Revert "Fix symlinks resolution."

This reverts commit e0fd857fe5795da999c96efc171d081af993bdaa.
Really fix symlinks resolution.