use sh() instead of system()
fixes tests
Rewrote array constants
Added test "build only"