build.sh and test.sh improvements
- processing build errors
- test.sh doesn't remove executable before calling build.sh anymore