Get file ending
Factory method takes config file path as a simple string