Section 4. An action brought pursuant to chapter two hundred and forty-seven shall be brought in the county where the goods or beasts are detained.