added explicit true comparison on version_compare() calls with a third parameter