You can probably cut that 4 gauge cable somewhere in the middle and add some connectors. Putting the DC-DC charger close to the batteries is preferred due to voltage drop. If you have a long cable between the charger and the battery, then your DC-DC charger might put out 14.4 volts, but you could (hypothetically) get 14.0V at the other end of the wire. (I'm not doing the math here, so don't interpret these as actual numbers.)
Conversely, the longer the wire (and more resistance) between the alternator and the charger, the higher the amps drawn from the alternator.