And remove unused/defunct code. Also fixes a `file-in-directory-p: Wrong type argument: stringp, nil` error when invoking counsel-recentf.