Allow ad set to remove the "w" flag on folders. Bug #539.
Fix path handling in ad utility. Bug #538.

From Stefan Muenkner.

Also remove a wrong error message when moving files without metadata.