Add compile_dir functions to erlydtl module