For the enforcement of such liens the persons entitled may sue out attachments before any officer authorized to issue such writs, returnable before any court of competent jurisdiction.