fix index escap on grunt env if