Update shell/generate-data to make it compatible with older versions of Bash
Add explicit mime type to API responses