#{prefix} should be interpolated

To extract a variable "prefix", use "%W" instead of "%w".
Using "%w", installation fails.

Closes #17429.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>