Fix bug in sendfile.rb

The error message called `variation` without the env leading to an `ArgumentError`. It should call `type` instead.
Merge pull request #585 from MSch/patch-1

Fix bug in sendfile.rb