add config path to error message when available (fix #288)