Made resolution detection in i3exit.bash more robust.