Fixed bug in send_file()

If you enable zlib.output_compression then level count will be increased by 1 and then this code: 
`while (ob_get_level()){ ob_end_clean(); }`
will just "freeze" your script.

Fixed incorrect work with $options.