Fix keyboard layout settings reading and writting

Reading from setxkbmap's output to get user layouts and calling setxkbmap to set
new layouts are broken