The dependence of the substellar initial mass function on the initial conditions for star formation