passing through build dir, cache dir, and env dir