added support for relative paths in require function