fixing flags for different version of wkhtmltopdf