support basedir as an option to node resolve sync