Make $mod operator available
fixes #517