fixing build remove dir, and fixed production config