automatically detect meta file pattern