FSI now syncs working directory with active document

Clears up #162, #161 and also fixes #122