Fix error in date handling with webdav
Code and build clean up