apt: use zlib from CMSDIST only if OFFLINE build

Make sure we use zlib from CMSDIST only if we do OFFLINE build.
ONLINE use zlib from standard system location.

Signed-off-by: David Abdurachmanov <davidlt@cern.ch>