Uniaxial extension of an isothermal fluid cylinder in the presence of inertia, surface tension and gravity