Add slim version check, fixes #889