Fixed path being unshifted before returned generator exhausted.