use simple replacement rather than string formatting in format_kernel_cmd

closes #4334

candidate for backport
Merge pull request #4336 from minrk/kernel_cmd_format

use simple replacement rather than string formatting in format_kernel_cmd

closes #4334