Upgrade bash file with variables