Fixed option handling in internal spawn call.