Issue #19856: shutil.move() failed to move a directory to other directory
on Windows if source name ends with os.altsep.
Issue #20558: Improved implementation of error handling.