Do not hardcode build_dir in build_caffe2. Use the build_dir parameter.
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/21296
Differential Revision: D15613035
Pulled By: bddppq
fbshipit-source-id: 19313cbe0135581990d489f489d366d00962a3c3