Fix up working directories and classpaths in Sancho-running scripts