only find files

Thanks, this was really useful!  Here's a small change to restrict find to files and avoid the `Can't do inplace edit: . is not a regular file.` errors.