Fix bug with supporting regexp file name