Modified script.sh. Ensure that the return status is PASS only if modules were successfully built