Fix regex

My previous commit broke Solaris detection while fixing OpenSolaris.
This fixes that.