Do not skip non-packages during project indexing.

Some projects have rather awkward layout, e.g. iOS-Universal-Framework
contains its sources under /devel/src. Before per-project configuration
wil be added it's better index as much as possible
(though it won't help in that particular case).
Fix mean/variance calculation. Add explicit binary mode in calls to open().