fix perl dependency check