Change unix-specific behavior in _traverse_upwards

On Windows, the root path for a drive is not the path seperator ('\').
However, os.path.abspath returns the expected result when used on the path seperator.