Small fixes

Hi, thank you for this script, it's awesome.

Unfortunately all my windows weren't displayed by dmenu. Windows with floating Layout or whose using a same name were absent.

I hope you will enjoy the changes.