Make sure scratch dir is empty.