Efficiently Deciding Algebraic Equivalence of Bow-Free Acyclic Path Diagrams