If you have the space, you might consider putting a water separator filter on the gas line. Most are 10 microns, which is small enough to stop water from going thru, but allows gas to pass thru. That should stop any "gunk", too.
Not sure how you'd get the "gunk" out, but your idea might work to clean a good part of it out. Do you have any idea what that "gunk" consists of ??