resolve

resolve like require.resolve() on behalf of files asynchronously and synchronously