Use buffer instead of specifying encoding

This seems to work best for 0.8
Get rid of COMPILED_DIR variable

Makes prompts easier to test
Extract helpers
Update tests to use their own compiled prompt location