check local path and use local path to install if existing