Improve to take control of another kind of file

This improvement allows us to take control of another kind of file.
An example is the configuration file of [testem](https://github.com/airportyh/testem).