fixed bug in scripts

Signed-off-by: Marian 'VooDooMan' Meravy <vdm113@gmail.com>