Why would anyone think a potential spy would physically carry source code over the border?
If he was going to leak it, it would have been sent months earlier over the internet, duh!
Especially if he knew that someone was suspicious of him. Someone has been watching too many movies.