Get rid of COMPILED_DIR variable

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