Anisotropic topological superconductivity in Josephson junctions