Bug fix for issue #493: 2-level or more deep relative links may go wrong when in win32