Edited regex for filenames matching.
Use pathRemover function  to remove compiler dir from output instead of str_replace.