adding dirname to sendFile path