bob bootstrap uses a regex for rewriting import paths which sometimes hits wrong code. We should move it to run on AST (e.g. babel instead). Furthermore, it needs to leverage to file system for correctly rewriting file paths that point to an index.js file.