Making error message more clear
Fixes bug with reading version number in some cases