Update files on window focus. Fixes #149