fixed custom config file creation (by arcon)
Merge pull request #329 from giulianoriccio/master

fixed custom config file creation (by arcon)