Changes to work with Mac OS X
made suggested changes and add --sed-tool option to build-all.sh script
clean up some more
Minor corrections to previous patch

1. Remove extra bashbang
2. Ensure that option --sed-tool will not be ignored.

Signed-off-by: Anton Kolesov <anton.kolesov@synopsys.com>