try to prevent performance decade and accept DISPLAY = ':0' form

In my linux. The display is ':0' and this example will just got 'missing file'.
It is not easy to understand why it failed.
So, I added some code.