plugins: Handle error case when installing tar files