More refactoring... this worked to install the right version of pg on the first chef run.