added glob support in generic makecp block
changed the loop as @stdweird suggested. Also changed comment
Merge pull request #367 from pescobar/makecp-glob

added glob support in generic makecp block