Moves variables to top of file and fixes
Moves variables to top of file and fixes

Makes use of the tmp variables that we were using in the rest of the
commands to dry up the code a bit.

Also fixes the shell outs to wkthmltopdf --version.

sportngin-cookbooks/wkhtmltopdf