Fix issue with guard listen, refactor code to generate content of asciidoctor in a different directory