bin/detect: Handle packaging/debian subdirectory