discover: Use snprintf() when building sysparam path