removing pg_config --sharedir and refactor into an attribute to make chef-solo works