Fix jenkins build script to use one big ccache if configured

Change-Id: Ic819006ba7064856a722615f471566f5a16f8017