Rewrite installing and running REPL for case when not using lfetool

This fixes #91.