fix bug: set environment variables instead of change directory