resolve symlink paths and store the absolute path to avoid duplicates;