Fix mime type

This script was determining MIME type by looking at the first value of ARGV (probably a flag like `--bucket`) rather than the file path.