Cleanup variable assignment and make all scripts idempotent