aglsetup script: fix interactive execution of the script generated from fragments