On the temperature dependent effective potential of scalar field theories