use /usr/bin/perl in the case that /usr/local/bin/perl does not exist
added debian's control template
fixed architecture setting problem on debian
removed annoy debug message
use dpkg --print-architecture to find arch string on debian system
merged from debian-issues