Support listen v1 and v2
test both listen 1.x and 2.x
test both listen 1.x and 2.x
Fixed bug where custom template path appears in output filenames. Fixes #172.