Fixed bug where files in directories starting with _ or . were still being detected.