use strict equals in readdir loops to prevent issues with '0' files

Fixes files not appearing the the filecache after a '0' file has been created.

Fixed https://github.com/owncloud/mirall/issues/844

cc @DeepDiver1975 @dragotin