mv: factor out empty src_dir removal