set worker processes correctly if env empty