Get dimensions of best resolution before creating irr device.

I also changed default 800x600 resolution to the size screen because sometimes this resolution may not exist. For example in rotated screens.
xrandr: update width and height params when wanted resolution was not found and we get the default one.
Update .gitignore file.

Too many builds in one folder ;-)