Fix path handling in ad utility. Bug #538.

From Stefan Muenkner.

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