use resolve() instead of join() for --require