adding in export environments from passed in directory