fix end-slash regular expression
store first segment of module path in path cache, allowing top-level links to be defined using `jsio.path.cache['link-name'] = 'path-to-link'`