Fixed crash on 'Check for update'

Plus added new logic to check updates on GitHub releases