Make sure the 'directory' local variable is set for use with 'subst' for native Tcl (i.e. as well as Eagle).  Add procedure to verify that Fossil is installed prior to attempting to use it.