Added fix for apache environment vars