agcaff: deref symlinks to avoid missing files, fix quoting