Build Script: Improved build script and strip modules from useless code