Update mime-types dependency to '~> 2'

`mime-types` 2.0 has been released recently. Not sure if `~>` is OK to use here though, feel free to change the operator.