Fix Linux detection of the architecture on SLC6; fix bugs on build-agent deploy for SLC6.