Import from opscode-omnibus irving/OC-11669 branch
Attempt to make the ready check safer by also verifying postgres is running