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