follow symlinks correctly