Get .a and .b file name from a single path
path (str) – Root, .a file or .b file
str (afile)
str (bfile)