More installer workflow fixes.
On CentOS 6, if you're testing and need to build an archive, you'll need the /var/cache/nginx directory writable by the current user.
Also, check to see if packages are installed before cleaning up, to prevent EC from interpreting uninstall cleanup commands as build errors.