Towards the Raychaudhuri equation beyond general relativity