Feature/upgrade script

Add upgrade script and avoid overwriting previously installed version with the installation script.