Better handling of file groups.

Grouping files by base name when processing, fixes #42.
Merge pull request #43 from jdeolive/dirrepo-filegroup

Better handling of file groups.