I have mixed feelings about this. It seems unfair. But then again, it was a "nervous" Algerian Muslim at the Washington/Canadian border in 1999 which led a heroine border agent to search his trunk and find massive explosives which he was going to use to blow up Los Angeles International Airport. She had no prior suspicions about him.
The last word is the only relevant one.
Borders are a completely different thing. They have the right to search anyone or everyone for any reason when crossing a border. You have no expectations or rights crossing international lines. However, a citizen within these borders, used to have the expectation of certain rights, such as not being searched.
obviously the solution would be increased scrutiny of people from target countries, regardless of smells or dogs.
Not profiling is PC suicide.