Fixed program crashes in bruteforce mode

Fixed crashes when input or source file is missed.