Fix bugs in davfs plugin