[CLEANUP] - Review build scripts

* Each module (cdo, def, pvc) was analyzing/compressing every file JS/CSS under package-res, even though only the files of those module would be output.
* Now it takes much less time.

@pamval please review.