find_window_by_regex: use exit code to indicate match

Also return/break after first action as per documentation.
Merge branch 'find_window_by_regex_exit_code' of github.com:blueyed/quickswitch-for-i3