fix lib puppet conditional check