Update prepare-generated-files to fully delete/refresh javadocs and build javadocs for plugins
Unix is case sensitive
Fix logic