add centos support, fix bugs introduced into custom facts