Handle reference file in subdirectory
Remove extra newline in header file template