Some fixes and improvements to debian folder v2

This closes also issue #5