let require take paths too

If require`s argument contains a slash or dot treat it like a path
to a file. This means that the file is searched relative to cwd,
variables like CUSTOM_LIBS and INC are not used.