some hanging refactoring with the move to non-global script_dir variable
some hanging refactoring with the move to non-global script_dir variable

rgardler/simdem,rgardler/simdem,rgardler/simdem,rgardler/simdem