add contains function for puppet 3.4.x