work around possibly missing getdcwd on windows