Wire in environment and cwd through types