Tools: added checks to compile.sh