added support for debian and updated template syntax