Add --trace option to scripts