Allow using directories as mv targets

Otherwise osc would crash because the target directory would be in use (in
case of ".".)
- do_mv: minor cosmetic changes