inlined require statement used for version number

Calls of `require()` are independent from the working dir so no need for `__dirname`. As this makes the method call a lot smaller and it's only used in one place, might as well inline it.