Gaia: fix flash script, removing locale folder in wrong condition (e.g. 1.4)