adding more accurate pillow checking

needs localsettings update but will fall back nicely to old style
Merge pull request #1143 from dimagi/pillow_stale_checker

adding more accurate pillow checking