Fix plugin generator in package.

Add simple funtion to normalize package and force overwrite.