[ShellScripting] Fixed crash

Thanks Oubliette.