Avoid grep in getting active window id
Makes this a little faster