fix logging and user.dir on windows