fix blank lines that can appear in the Debian template
debian: add a test to detect issue #329 problem
debian: change fix to be more readable