Windows compat fixes

Changed usage of '/' as root dir. Stopped tests from wiping out
environment.