Merge pull request #15 from gaillard/master

Add prefix check to index generation.