ensure lowercase name when generating package info, fixed issue #329