profile script: do not leak vars, do not run if not interactive