Remove hardcodings of LyX 2.1

Now things work with LyX 2.2git and future versions.