add --replacepkgs to rpm install command

without this rpm will error if the package is already installed.

this was broken for a very long time, but the error checking at the
end of the script had also been broken and we had been ignoring
this error.