Import only specific values from project_settings into env.

Prevents project_settings from accidentally stomping all over env, for
example overwriting env.path with garbage.

Fix invalid use of getattr.