fold install commands if they exceed docker layer limit

It's being called from the same file several lines above (see diff).