Fixed test for '--root' option to work correctly in Windows and Unix env...

...ironments