add env.$rack_env.local and two parsing fixes

see commit messages…
same thing here --- i think this *should* blow up if its mis-configured