Export the same API as node-resolve