fix path.len
check result of ngx_read_file