Perform target setup when performing a cached build. Fixes #159.