fixed an issue with the upgrade script
fixed an issue with the upgrade script

RichieB2B/MISP,SteveClement/MISP,FIRSTdotorg/MISP,FloatingGhost/MISP,devnull-/MISP,cristianbell/MISP,devnull-/MISP,Rafiot/MISP,FloatingGhost/MISP,devnull-/MISP,crruthe/MISP,MISP/MISP,MISP/MISP,FloatingGhost/MISP,cristianbell/MISP,crruthe/MISP,cristianbell/MISP,SteveClement/MISP,RichieB2B/MISP,TheDr1ver/MISP,Rafiot/MISP,devnull-/MISP,TheDr1ver/MISP,FIRSTdotorg/MISP,cristianbell/MISP,FIRSTdotorg/MISP,SteveClement/MISP,SteveClement/MISP,MISP/MISP,crruthe/MISP,FloatingGhost/MISP,TheDr1ver/MISP,TheDr1ver/MISP,SteveClement/MISP,Rafiot/MISP,RichieB2B/MISP,MISP/MISP,FIRSTdotorg/MISP,MISP/MISP,RichieB2B/MISP,crruthe/MISP,Rafiot/MISP