Automatically enable compression if data file is compressed

Signed-off-by: nixnodes <code@eth.si>