Fix bug in sendfile.rb

The error message called `variation` without the env leading to an `ArgumentError`. It should call `type` instead.