Amend fix for #26.

Keep track of currently used file and reload it when it changes.