Implement exit code fixes #1

0 -> files are equal
1 -> files not equal
2 -> IOError

Print only to stderr in case of the IOError