Added ability to restrict scripts to specific environments