Fix installer on linux

Fix strong type check between int and string
Fix disttype (bz2 => tar)