DartSdkUtil.getPubPath() method extracted