One minor error on escaped quotes for the environment settings, should be fixed.
Updated value extraction.