Apply ERB patch when testing
Make destination optional
Refactor Sword::Compiler