Fixes to permissions on created tars and debs