Further fix for matlab to work in windows