Pass profile env vars to build commands

Closes #553