rewrote file monitoring logic to accomodate Sublime Text