Flory-Huggins approximation and beyond from the path integral