add the install_local_package function and install packages from local files if found