add default extension if there is not one set

The docs say 'The path to the config file, relative to the config directory. Do not include the file extension (".php" is assumed).'
which currently is not correct. If you do not specify a file extension none gets set so this sets the default if one is not provided.