Add support for custom configuration file name

As requested in #1365