changing where some vars get set for foundation.
foundation should work for non-ec2 now