for an explanation of why $findfile() used in that way is inefficient, take a look at my post on: http://www.hawkee.com/snippet/7948/
much more optimal is to take advantage of $findfile()'s command or window parameters:
if $devent == init {
noop $findfile($logdir, *.log, 0, did -a $dname 10 $nopath($1-))
; etc.