Updated script path handling in demo1