*8902* Fixed auto staging for environments that return false when globin...

...g empty folders
@beghelli, I don't think $dirFiles exists any more.  Don't you want $logFiles now?  $dirFiles was defined in the block you deleted (old line 104)