Updated script to match jenkins's environment