scripts: fix if statements
Merge pull request #134 from fichtner/fix_scripts

scripts: fix if statements