On Solaris 10 the default /bin/sh ends up in syntax error when trying to evaluate CONSTANT=$(...). Patch from Claes Nästén via PR pkg/56510, thanks!