RF+BK: rename dataset_slice to slice
NF: separate function to check dataset consistency
BLD: ensure that "make clean" does not throw error messages even if there is nothing to clean