Replaces a caret with the root path
allow root-of-project (closest package.json) requires in browserify with `^`