scripts: Fixed bad if syntax