Added missed free for the result of realpath.
Allow to specify custom config file via cli option (#12).