Fixed segfault in PionUnitTest::trim() caused by use of "unsigned" instead of  "long"
Fixed segfault in PionUnitTest::trim() caused by use of "unsigned" instead of 
"long"

Refactored check_files_match to make it cleaner & more reliable/accurate


acmorrow/pion-core,acmorrow/pion-core,acmorrow/pion-core,acmorrow/pion-core,acmorrow/pion-core,acmorrow/pion-core,acmorrow/pion-core