Small improvement to sendFile