fixed nonwordcharacter environment variables
automatically hook update environment
allow multiple content dirs