allow specifying "skip" more than once
simplify the code by using a Text::Template to generate the test
ensure the test is not generated with trailing spaces
use -Mblib for module tests, just like Test::Script does
remove an unnecessary string variable
properly inject Capture::Tiny as a prereq
do not load File::Temp unless it is used
v2.009

 - the 'skip' option can now be provided multiple times
 - now using Text::Template to generate the test, for simpler munging code
 - properly inject all used modules as test prerequisites