Make collect_glob work like the comments say it's supposed to

This fixes a bug introduced in commit 5e91322e4ab0383068463844ead85ff15c0fba9e that causes rebar ct to fail when running where a dependency also has a cover.spec file.