Send appropriate headers

@bfulton @nahiluhmot @ahazem

Little cleanup for #148 that should fix `#build_from_dir` for #166.

Looks like we were sending over the wrong auth/config hash.