rebuild.sh: Fix script is ccache is not installed. The script would exit immediately if ccache is not installed because 'which ccache' returns an error in this case. Fix this.