Fix output issue for compiler

Compiler output would return blank unless `output` was also set.