Fixed bug in 'install' target. Fixed mem leak in config.