It looks like you have it correct; for the one-sided case, g' can be calculated exactly (as shown in the documentation). For the two sided case, however, a variety of approximations are available and some are better than others. But, be warned, it is not the case that two one-sided tolerance intervals (lower and upper, respectively, each at 1-alpha/2 confidence) gives the same interval as a two-sided tolerance interval at 1-alpha confidence.