Improve function existance checking
Merge pull request #220 from p91paul/fix-colors-debian

Improve function existance checking