Fix scripts to use "[[" instead "if"