Fix issue with tags containing double quotes
Use environment variables for index and format in all commands