Handle possibility of a too-long path in the read_junction method.