Check if the output string contains the file name and file path by using
the regular expression. If so, then split the output string into a list
of string. Skip the first substring (file paths) and compare the second
and third substring with the expected substrings. 

Note this check is to solve the different path separaters on Linux and
Windows.