Fix for when using $TEMPLATE

Fix wrong handling of empty lines when using the $TEMPLATE macro.
Merge pull request #3 from zecrazytux/dpkg_reconfigure

Fix for when using $TEMPLATE