give only a warning if requiring a file for using/import does not yield a module

fixes #4492

for #4600, don't do any requires for relative imports. we might add
some behavior here in the future, but for now looking for files in
global locations for relative module paths is clearly wrong.