[bugfix] substitution error in header generation

Signed-off-by: Shahbaz Youssefi <ShabbyX@gmail.com>
[rtai] [bugfix] build errors in rtai

Signed-off-by: Shahbaz Youssefi <ShabbyX@gmail.com>