Replace (ignore-errors (dired-get-filename)) with internal version from utils