module: fix createRequireFromPath() slash logic
The trailing slash detection logic in createRequireFromPath()
seemed slightly incorrect. This commit reworks the logic.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines