Debian script fixes