Fixed environment in scripts