Fixes for tests on windows environment

Handle the special case of CD'ing to "/" on windows (should replace that
with current drive "C:\"
fixing an issue where cd'ing up a dir from the root would not leave you at the root