Code improved to allow for checks of variable created from the owrking directory (i.e. not assigned after login but rather derived from one of the variable assigned initially after login).