AnnotationDriver: usage of setFileExtension

Metadata can contain `*` as separator between path and file extension.