Fix --timeout argument to work with directories
Fix --timeout argument to work with directories

The --timeout argument was working with individual files, but when scanning a directory it wasn't measuring the time spent on scanning the directory as a whole.

neatsun/yara,tanium/yara,bmagistro/yara,mgoffin/yara,mgoffin/yara,binsrc/yara,kallanreed/yara,MeteorAdminz/yara,hillu/yara,plusvic/yara,beikezcs/yara,smaudet/yara,cblichmann/yara,kallanreed/yara,bmagistro/yara,jpypi/yara,wxsBSD/yara,plusvic/yara,beikezcs/yara,frbapolkosnik/yara,cblichmann/yara,plusvic/yara,binsrc/yara,rayyang2000/yara,smaudet/yara,binsrc/yara,Security513/yara,plusvic/yara,jpypi/yara,tdr130/yara,MeteorAdminz/yara,VirusTotal/yara,rayyang2000/yara,plusvic/yara,VirusTotal/yara,pombredanne/yara,digideskio/yara,hillu/yara,hillu/yara,digideskio/yara,wxsBSD/yara,wxsBSD/yara,digideskio/yara,jpypi/yara,wxsBSD/yara,tdr130/yara,msuvajac/yara,tanium/yara,VirusTotal/yara,neatsun/yara,rednaga/yara,frbapolkosnik/yara,mgoffin/yara,rednaga/yara,bmagistro/yara,cblichmann/yara,pombredanne/yara,hillu/yara,binsrc/yara,digideskio/yara,cblichmann/yara,Security513/yara,mgoffin/yara,Security513/yara,MeteorAdminz/yara,msuvajac/yara,jshufelt/yara,pombredanne/yara,cblichmann/yara,kallanreed/yara,neatsun/yara,foreni-packages/yara,foreni-packages/yara,VirusTotal/yara,frbapolkosnik/yara,jshufelt/yara,smaudet/yara,wxsBSD/yara,jshufelt/yara,pombredanne/yara,frbapolkosnik/yara,smaudet/yara,pombredanne/yara,foreni-packages/yara,VirusTotal/yara,rednaga/yara,tdr130/yara,msuvajac/yara,tanium/yara,beikezcs/yara,jshufelt/yara,rayyang2000/yara,hillu/yara