[MIE-1172] Correct regex, exclude third party libs and specs