and remove ${LOG}. It's a bit of a useless mechanism and, in fact a hindrance. Why not just let the user redirect stdout?
if present, this is used, otherwise conf/${DISTRIBUTION} as before.