Fix sendfile

* Use transport module instead of :file
* Prevent client errors from raising a badarg