filesystem thread now does proper checking before attempting to get a directory contents. closes #8