Test if a file is a Debian package before doing anything with it