removed setenv(), replaced with smbw_setenv()