Added specific version checking for 2.4
This way the patch added in 7270a38 is actually applied. Fixes #23.