Symlinks poiting to non-existing files are not removed
CLUDGE: resolving links "to the bitter end" causes symlinks to be always expanded, even when pointing to a non-existing file. Result is in this case for example that the non-existing file is (unsuccesfully) removed, but the link not. "remove" for example differs in unlinkat in that sense that it does not follow the symlink, but removes the link (and not the pointed-at file). The cludge here is that the path will be resolved all the way to the pointed-at file only if it exists, and in that case, it will be removed. If not, the mapped path will be set to the link's one, and treated as a "regular" file.
NOTE : The behavior of resolving the path to the non-existing file is btw not according to regular behavior of posix; see for example man rm; rm removes only the symlink, not the pointed-at (resolved) file.