Fix assertions path matching, close #1339