allow data option to be a yml file

This allows to define a path to a YAML file as data option.
It checks for the extensions `.yml` and `.yaml`.