scripts: fix if statements