Use find instead of ls and grep to locate gmp.h (or gmp-blah.h)

Sorry for two relatively small pull requests. This was also not working correctly on debian, so I refactored gmp_sysver to be a little more generalized.