fix unit test case that works with Lmod but is broken with Tcl-based env mods