fixed bug regarding addheaders array and unlinking of temporary file
debian run scripts and package dependencies