Means for varying the stroke of the free-piston