better implementation of architecture switching for wkhtmltox package install