Move variable closer to usage

Signed-off-by: Tony Hansmann <thansmann@pivotallabs.com>
Update some of the packages for CentOS

[#54320562]

Signed-off-by: Tony Hansmann <thansmann@pivotallabs.com>