Handle relative dependencies

Fixes commonjs dependency resolution