Fixed issue #2223: Move & revert operations not as expected if working tree root is directly on a drive

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Drop commented code

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>