fixed setting of current directory for windows