cleanup config. add install_path detection function