add smarter dependency checking
Merge pull request #105 from zenoss/bugfix/ZEN-14008

add smarter dependency checking