bug fix
use dirname as repoID
support omitting array when there is only one source
Merge pull request #7 from renrenfed/master

update