scripts: avoid hard-coded paths in scripts