changed permission of *.bat and corrected setenv