improved generation of cpanfile