Fixed regression with `@require` and globbed paths inside functions. Closes #1528
0.45.1