Updated matinpublish to avoid writing over existing files
genpath token is either : or ;