only set env if there are scripts to run